<%@ page import="your_car_status.MechanicalTechnician" %>



<div class="fieldcontain ${hasErrors(bean: mechanicalTechnicianInstance, field: 'name', 'error')} required">
	<label for="name">
		<g:message code="mechanicalTechnician.name.label" default="Name" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="name" required="" value="${mechanicalTechnicianInstance?.name}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: mechanicalTechnicianInstance, field: 'speciality', 'error')} required">
	<label for="speciality">
		<g:message code="mechanicalTechnician.speciality.label" default="Speciality" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="speciality" required="" value="${mechanicalTechnicianInstance?.speciality}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: mechanicalTechnicianInstance, field: 'address', 'error')} required">
	<label for="address">
		<g:message code="mechanicalTechnician.address.label" default="Address" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="address" required="" value="${mechanicalTechnicianInstance?.address}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: mechanicalTechnicianInstance, field: 'phone', 'error')} required">
	<label for="phone">
		<g:message code="mechanicalTechnician.phone.label" default="Phone" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="phone" maxlength="10" required="" value="${mechanicalTechnicianInstance?.phone}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: mechanicalTechnicianInstance, field: 'password', 'error')} required">
	<label for="password">
		<g:message code="mechanicalTechnician.password.label" default="Password" />
		<span class="required-indicator">*</span>
	</label>
	<g:field type="password" name="password" maxlength="15" required="" value="${mechanicalTechnicianInstance?.password}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: mechanicalTechnicianInstance, field: 'password', 'error')} required">
	<label for="confirmPassword">
		<g:message code="Confirm Password" />
		<span class="required-indicator">*</span>
	</label>
	<g:field type="password" name="confirmPassword" maxlength="15" required="" value="${mechanicalTechnicianInstance?.confirmPassword}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: customerInstance, field: 'repairShop', 'error')} required">
        <label for="repairShop">
		<g:message code="customer.repairShop.label" default="Repair Shop" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="repairShop" name="repairShop.id" from="${your_car_status.RepairShop.list()}" optionKey="id" optionValue="name" required="" value="${customerInstance?.repairShop?.name}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: mechanicalTechnicianInstance, field: 'username', 'error')} ">
	<label for="username">
		<g:message code="mechanicalTechnician.username.label" default="Username" />
		
	</label>
	<g:textField name="username" value="${mechanicalTechnicianInstance?.username}"/>
</div>
